import time
import gc
import pygame as pg
from ombot import util
from ombot import game
# from util import display, welcome, bye,button,question
# from game import Game

print('custom demo')
win = pg.display.set_mode((128, 64))
# wait for input to start game
while util.question("Start Game?") == 1:
	# Create a game
	game1 = game.Game(win)
	# start game
	game1.run()
	# game over
	gc.collect() # very import!!!

util.bye()
